package com.service.user;

import com.bean.Sys_user;
import com.github.pagehelper.Page;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;

/**
 * Created by lvjianqing on 2017/9/9.
 */
public interface UserService {
    void loadUserMenu(HttpServletRequest request,Sys_user user);

    Sys_user getUserByLoginName(String loginName);

    /**
     * 分页查找用户列表
     * @param pageNum
     * @param pageSize
     * @param paraMap
     * @return
     */
    Page findByPage(int pageNum, int pageSize, HashMap<String,Object> paraMap);

    Sys_user findUserById(Integer id);

    int saveUser(Sys_user user);

    void delUser(Integer id);
}
